package com.test.wxy;


import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

//import javax.annotation.Resource;

@Service
//@Transactional
public class PluginServiceImpl implements IPluginService{

    //@Resource UserMapper userMapper;
    @Resource
    JdbcCommonRepository jdbcCommonRepository;

    public String test(String ttt){
        System.out.println("run from wxy.jar: PluginServiceImpl.test ");
        //System.out.println(testService.test("dddddd"));
        //User user = new User();
        //user.setName("232323");
        //user.insert();
        //userMapper.insert(user);
        List<Object> params = new ArrayList<>();
        params.add(ttt);
        jdbcCommonRepository.executeInsert("insert into tt_user(name) values(?)", params);
        return "ssssssssss";
    }


}
